package logic;
import java.util.Comparator;

import entities.Player;

/** The class that implements a player comparator.
 * @author Team 1
 *
 */
public class DescSort implements Comparator<Player> {

		@Override
		public int compare(Player p1, Player p2) {
			if(p1.getScore() == p2.getScore())
				return 0;
			else if(p1.getScore() < p2.getScore()) 
				return 1;
			else
				return -1;
		}
		
	}